Skip to content

GUI: remove Excel output, add AsBuiltReport config file wizard#14

Draft
Copilot wants to merge 4 commits intodevfrom
copilot/design-gui-for-report-generation
Draft

GUI: remove Excel output, add AsBuiltReport config file wizard#14
Copilot wants to merge 4 commits intodevfrom
copilot/design-gui-for-report-generation

Conversation

Copy link
Contributor

Copilot AI commented Mar 11, 2026

Removes Excel as an output format option and adds an in-GUI equivalent of New-AsBuiltConfig so users can generate the global AsBuiltReport configuration file without leaving the window.

Removed

  • Excel output format — checkbox and all related code dropped from the Output Formats section and the generate callback.

Added: AsBuiltReport Config File row

A new row in the Report Configuration section provides three controls:

Control Behaviour
TextBox Path to an existing or freshly-generated AsBuiltReport.json
Browse OpenFileDialog to pick an existing config
Generate Config... Opens a second Avalonia window — the wizard

When a valid path is present at report-generation time, it is passed to New-AsBuiltReport as -AsBuiltConfigFilePath. If the path is set but the file is missing, a warning is logged and generation continues without it.

Added: Generate Config wizard window

Mirrors the fields collected by New-AsBuiltConfig:

  • Report Information — Author (pre-filled with current username)
  • Company Information — Full Name, Short Name, Contact, Email, Phone, Address
  • Email / SMTP Settings (optional) — Server, Port, From, To (comma-separated), Use SSL/TLS, Requires Credentials

On Save Config the wizard:

  1. Creates the target directory if it does not exist
  2. Writes a JSON file matching the schema expected by New-AsBuiltReport -AsBuiltConfigFilePath
  3. Propagates the saved path back into the main window's config textbox and closes

Docs

  • Start-AsBuiltReportGui.ps1 .DESCRIPTION updated (Excel removed, wizard documented)
  • README.md GUI feature table updated accordingly
Original prompt

This section details on the original issue you should resolve

<issue_title>Design a Gui that can be use to generate the report</issue_title>
<issue_description>### Description

Design a Gui that can be use to generate the report:

  1. Design a Gui in Avalonia UI xaml
  2. Implement the powershell code to integrate with AvaloniaUIShell: https://github.com/mdgrs-mei/AvaloniaUIShell

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: rebelinux <1002783+rebelinux@users.noreply.github.com>
Copilot AI changed the title [WIP] Design GUI to generate reports with Avalonia UI Add Avalonia UI GUI launcher for System Resources As Built Report Mar 11, 2026
@github-actions
Copy link

PSScriptAnalyzer results:

Errors: [0], Warnings: [26], Information: [2]


RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSAvoidUsingPositionalParameters
Severity   : Information
ScriptName : Start-AsBuiltReportGui.ps1
Line       : 48
Message    : Cmdlet 'Join-Path' has positional parameter. Please use named 
             parameters instead of positional parameters when calling a command.

RuleName   : PSAvoidTrailingWhitespace
Severity   : Information
ScriptName : SystemResources.psd1
Line       : 35
Message    : Line has trailing whitespace

@rebelinux
Copy link
Collaborator

rebelinux commented Mar 11, 2026

Fucking awesome!

Screenshot_2026-03-10_21-10-31

… to GUI

Co-authored-by: rebelinux <1002783+rebelinux@users.noreply.github.com>
Copilot AI changed the title Add Avalonia UI GUI launcher for System Resources As Built Report GUI: remove Excel output, add AsBuiltReport config file wizard Mar 16, 2026
Copilot AI requested a review from rebelinux March 16, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design a Gui that can be use to generate the report

2 participants